package manager;

import entity.Publisher;
import iface.IManagerDisabled;
import java.util.ArrayList;

/**
 *
 * @author Noi
 */
public class DisabledPublisherManager implements IManagerDisabled<Publisher> {
    
    private Manager manager;
    private ArrayList<Publisher> alPublisher;
    
    public DisabledPublisherManager(Manager manager) {
        this.manager = manager;
        this.alPublisher = new ArrayList<Publisher>();
    }
    
    @Override
    public void add(Publisher obj) {
        this.alPublisher.add(obj);
    }

    @Override
    public void recovery(int index) {
        Publisher pub = (Publisher)this.alPublisher.remove(index);
    }

    @Override
    public Publisher get(int index) {
        return this.alPublisher.get(index);
    }
    
}
